﻿<%@ Page Language="c#" CodeBehind="MsgManage.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.SM.MsgManage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>消息中心</title>
  <script language="JavaScript" type="text/javascript">
  //<!--
  function LoadEvent() {
    if (document.MsgManage.btnNext != null) {//查看状态	
      CloseTimer();
      document.MsgManage.btnReply.focus();
    }
    else {//回复状态
      TimeShow.innerHTML = "";
      words.innerHTML = "";
      document.MsgManage.txtContent.focus();
    }


  }

  TimeStart = 20;
  function CloseTimer() {
    if (TimeStart == 0)
      window.close();

    TimeShow.innerHTML = TimeStart;
    TimeStart--;

    var timer = setTimeout("CloseTimer()", 1000);
  }


  function Reply() {
    if (event.keyCode == 10) {
      document.MsgManage.btnReply.click();
    }
  }
  //-->
  </script>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body onload="LoadEvent()">
  <form id="MsgManage" method="post" runat="server">
  <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0" height="30">
    <tr>
      <td background="../../Images/treetopbg.jpg">
        <table class="GbText" cellspacing="0" cellpadding="0" width="100%" border="0">
          <tr>
            <td align="center" width="30"><img height="16" src="../../Images/page.gif" width="16"></td>
            <td>&nbsp;
              <asp:Label ID="lblInstruction" runat="server">最新消息</asp:Label>
              <span id="TimeShow" style="font-weight: bold; color: #ff0000"> </span>
              <span id="words">&nbsp;秒后关闭</span></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table id="dgMailList" style="border-right: #93bee2 1px; border-top: #93bee2 1px; border-left: #93bee2 1px; width: 100%; border-bottom: #93bee2 1px; border-collapse: collapse; background-color: white" bordercolor="#93bee2" cellspacing="0" cellpadding="3" rules="all" border="1">
          <tbody>
            <tr style="font-size: x-small; color: black; background-color: #e8f4ff" valign="middle" align="center">
              <td align="center" bgcolor="#93bee2" height="4"><font face="宋体"></font></td>
            </tr>
          </tbody>
        </table>
        <table id="tnb" style="border-right: #93bee2 1px; border-top: #93bee2 1px; border-left: #93bee2 1px; width: 100%; border-bottom: #93bee2 1px; border-collapse: collapse; background-color: white" bordercolor="#93bee2" cellspacing="0" cellpadding="3" rules="all" border="1">
          <tr style="font-size: x-small; color: black; background-color: #e8f4ff" valign="middle" align="center">
            <td style="font-size: x-small; width: 50px" align="left" width="50"><font face="宋体">
              <asp:Label ID="lblSender" runat="server" Font-Size="X-Small">发送者</asp:Label></font></td>
            <td style="font-size: x-small" align="left"><font face="宋体">&nbsp; </font>
              <asp:TextBox ID="txtRealName" runat="server" Width="77px" CssClass="InputCss"></asp:TextBox><asp:TextBox ID="txtMsgID" runat="server" Visible="False" Width="7px"></asp:TextBox><asp:TextBox ID="txtSender" runat="server" Visible="False" Width="9px"></asp:TextBox></td>
          </tr>
          <tr style="font-size: x-small; color: black; background-color: white" valign="middle" align="center">
            <td style="font-size: x-small; width: 50px" align="left"><font face="宋体">
              <asp:Label ID="lblContent" runat="server" Font-Size="X-Small">内  容</asp:Label></font></td>
            <td style="font-size: x-small" align="left"><font face="宋体">&nbsp; </font>
              <asp:TextBox onkeypress="Reply()" ID="txtContent" runat="server" Width="280px" Height="120px" TextMode="MultiLine" CssClass="InputCss"></asp:TextBox><br>
              <font face="宋体">&nbsp; </font>
              <asp:Label ID="lblShortCut" runat="server" Font-Size="X-Small"></asp:Label></td>
          </tr>
          <tr style="font-size: x-small; color: black; background-color: white" valign="middle" align="center">
            <td style="font-size: x-small; width: 50px" align="left">
              <asp:Button ID="btnHistory" runat="server" Enabled="False" Text="历史记录" CssClass="greenButtonCss"></asp:Button></td>
            <td align="left" style="font-size: x-small">&nbsp;
              <asp:Button ID="btnReply" runat="server" Enabled="False" Text="回复" CssClass="redButtonCss"></asp:Button>&nbsp;
              <asp:Button ID="btnNext" runat="server" Enabled="False" Text="下一条" CssClass="redButtonCss"></asp:Button>&nbsp;
              <asp:Button ID="btnRead" runat="server" Text="我知道啦!" CssClass="redButtonCss"></asp:Button></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  </form>
</body>
</html>
